//@dart=2.12
import 'package:base_flutter/base_flutter.dart';

/// attach : null
/// branchId : 1590
/// createdBy : "73945"
/// createdDate : "2023-02-15 10:20:00"
/// deleteStatus : 0
/// finalPrice : null
/// id : 2
/// name : "轮椅"
/// price : 200.000
/// remark : null
/// saasId : 1000
/// serialNum : null
/// source : 2
/// supplier : ""
/// supplierNum : ""
/// tax : null
/// tenantId : 1000
/// timeBegin : null
/// timeMaintain : null
/// type : 2
/// updatedBy : "73945"
/// updatedDate : "2023-02-15 10:20:00"
/// weight : null

class EventEquipmentListData extends IPickerData{
  EventEquipmentListData({
      this.attach, 
      this.branchId, 
      this.createdBy, 
      this.createdDate, 
      this.deleteStatus, 
      this.finalPrice, 
      this.id, 
      this.itemName,
      this.price, 
      this.remark, 
      this.saasId, 
      this.serialNum, 
      this.source, 
      this.supplier, 
      this.supplierNum, 
      this.tax, 
      this.tenantId, 
      this.timeBegin, 
      this.timeMaintain, 
      this.type, 
      this.updatedBy, 
      this.updatedDate, 
      this.weight,});

  EventEquipmentListData.fromJson(dynamic json) {
    attach = json['attach'];
    branchId = json['branchId'];
    createdBy = json['createdBy'];
    createdDate = json['createdDate'];
    deleteStatus = json['deleteStatus'];
    finalPrice = json['finalPrice'];
    id = json['id'];
    itemName = json['name'];
    price = json['price'];
    remark = json['remark'];
    saasId = json['saasId'];
    serialNum = json['serialNum'];
    source = json['source'];
    supplier = json['supplier'];
    supplierNum = json['supplierNum'];
    tax = json['tax'];
    tenantId = json['tenantId'];
    timeBegin = json['timeBegin'];
    timeMaintain = json['timeMaintain'];
    type = json['type'];
    updatedBy = json['updatedBy'];
    updatedDate = json['updatedDate'];
    weight = json['weight'];
  }
  dynamic attach;
  num? branchId;
  String? createdBy;
  String? createdDate;
  num? deleteStatus;
  dynamic finalPrice;
  num? id;
  String? itemName;
  num? price;
  dynamic remark;
  num? saasId;
  dynamic serialNum;
  num? source;
  String? supplier;
  String? supplierNum;
  dynamic tax;
  num? tenantId;
  dynamic timeBegin;
  dynamic timeMaintain;
  num? type;
  String? updatedBy;
  String? updatedDate;
  dynamic weight;
EventEquipmentListData copyWith({  dynamic attach,
  num? branchId,
  String? createdBy,
  String? createdDate,
  num? deleteStatus,
  dynamic finalPrice,
  num? id,
  String? name,
  num? price,
  dynamic remark,
  num? saasId,
  dynamic serialNum,
  num? source,
  String? supplier,
  String? supplierNum,
  dynamic tax,
  num? tenantId,
  dynamic timeBegin,
  dynamic timeMaintain,
  num? type,
  String? updatedBy,
  String? updatedDate,
  dynamic weight,
}) => EventEquipmentListData(  attach: attach ?? this.attach,
  branchId: branchId ?? this.branchId,
  createdBy: createdBy ?? this.createdBy,
  createdDate: createdDate ?? this.createdDate,
  deleteStatus: deleteStatus ?? this.deleteStatus,
  finalPrice: finalPrice ?? this.finalPrice,
  id: id ?? this.id,
  itemName: name ?? this.name,
  price: price ?? this.price,
  remark: remark ?? this.remark,
  saasId: saasId ?? this.saasId,
  serialNum: serialNum ?? this.serialNum,
  source: source ?? this.source,
  supplier: supplier ?? this.supplier,
  supplierNum: supplierNum ?? this.supplierNum,
  tax: tax ?? this.tax,
  tenantId: tenantId ?? this.tenantId,
  timeBegin: timeBegin ?? this.timeBegin,
  timeMaintain: timeMaintain ?? this.timeMaintain,
  type: type ?? this.type,
  updatedBy: updatedBy ?? this.updatedBy,
  updatedDate: updatedDate ?? this.updatedDate,
  weight: weight ?? this.weight,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['attach'] = attach;
    map['branchId'] = branchId;
    map['createdBy'] = createdBy;
    map['createdDate'] = createdDate;
    map['deleteStatus'] = deleteStatus;
    map['finalPrice'] = finalPrice;
    map['id'] = id;
    map['name'] = name;
    map['price'] = price;
    map['remark'] = remark;
    map['saasId'] = saasId;
    map['serialNum'] = serialNum;
    map['source'] = source;
    map['supplier'] = supplier;
    map['supplierNum'] = supplierNum;
    map['tax'] = tax;
    map['tenantId'] = tenantId;
    map['timeBegin'] = timeBegin;
    map['timeMaintain'] = timeMaintain;
    map['type'] = type;
    map['updatedBy'] = updatedBy;
    map['updatedDate'] = updatedDate;
    map['weight'] = weight;
    return map;
  }

  @override
  String get name => itemName??"";

}